package com.cr.web.controller.lsd;

import com.cr.common.core.domain.AjaxResult;
import com.cr.sync.domain.dto.LsdCountParam;
import com.cr.sync.service.ITbSyncMainBodyInfoService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import javax.validation.Valid;

/**
 * 大屏主体信息控制器
 */
@RestController
@RequestMapping("/lsd/mainBody")
public class LsdMainBodyController {

    @Resource
    private ITbSyncMainBodyInfoService tbSyncMainBodyInfoService;

    /**
     * 主体数量统计
     */
    @GetMapping("count")
    public AjaxResult count(@Valid LsdCountParam param) {
        return AjaxResult.success(tbSyncMainBodyInfoService.getMainBodyCount(param));
    }

}
